- What are they?
- What are they good for?
- How do I use them?
Definition: a network in which has two sets of nodes with edges between and not within sets.
http://mangal.uqar.ca/doc/spec/
http://biorxiv.org/content/biorxiv/early/2015/02/24/002634.full.pdf
Can you represent your network as two distinct sets?
2+2
## [1] 4
four = 2 + 2
four = 2 + 2 print(four)
## [1] 4
library(bipartite)
Import/Load models using read.csv
people.fas.harvard.edu/~matthewklau/bipmodel.csv
our.binet <- read.csv('../data/bipmodel.csv')
binet.nest <- nestedness(our.binet,null.models=FALSE) names(binet.nest) binet.nest$temperature
binet.nest <- nestedness(our.binet,null.models=TRUE,n.nulls=10)
plotweb(our.binet)
binet.mods <- computeModules(our.binet)
binet.mods
plotModuleWeb(binet.mods)
null.nets <- nullmodel(our.binet, N=3, method="r2d")
null.mods <- lapply(null.nets,computeModules)
lapply(null.mods,slot,name='likelihood')
Ecosystem networks and enaR!
data(oyster) write.EcoNet(oyster,file='./oyster.txt',mn='ena_model_oyster')